using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 护肤产品评价仓储接口
    /// </summary>
    public interface ISkincareProductReviewRepository : IRepository<SkincareProductReview>
    {
        Task<IEnumerable<SkincareProductReview>> GetByProductIdAsync(Guid productId);
        Task<IEnumerable<SkincareProductReview>> GetByUserIdAsync(Guid userId);
        Task<IEnumerable<SkincareProductReview>> GetByRatingAsync(int rating);
        Task<double> GetAverageRatingByProductIdAsync(Guid productId);
    }
}